package com.whli.autumn.mall.web.controller.convert.wms;

import com.whli.autumn.mall.wms.domain.dto.warehousearea.WarehouseAreaAddDTO;
import com.whli.autumn.mall.wms.domain.dto.warehousearea.WarehouseAreaUpdateDTO;
import com.whli.autumn.mall.wms.domain.entity.WarehouseArea;
import com.whli.autumn.mall.wms.domain.vo.warehousearea.WarehouseAreaVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * <p>库区信息转换工具</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023-04-09 08:37
 */
@Mapper
public interface WarehouseAreaConvert {

    WarehouseAreaConvert INSTANCE = Mappers.getMapper(WarehouseAreaConvert.class);

    WarehouseArea addToDomain(WarehouseAreaAddDTO dto);

    WarehouseArea updateToDomain(WarehouseAreaUpdateDTO dto);

    WarehouseAreaVO domainToVO(WarehouseArea entity);

}
